<%@ page import="java.io.*" %>
<%@ page contentType="text/html;charset=GBK" %>
<%
	
	String pathStr="E:\\test";
	String destStr="E:\\kkk";
	File path=new File(pathStr);
	File dest=new File(destStr);
	if (!dest.exists())
	{
		out.println(path.renameTo(dest));
	}
	else
	{
		out.println("This file exists!!!");
	}
	
	File newFolder=new File("E:\\test\\kknd\\");
	
	if (!newFolder.exists())
	{
		out.println(newFolder.mkdir());
	}
	
	File fileA=new File("E:\\test\\LICENSE.txt");
	File fileB=new File("E:\\test\\LICENSE_bak.txt");
	if (!fileB.exists())
	{
		out.println(fileA.renameTo(fileB));
	}
	
	fileB.delete();
	
	
		
	
%>
